#include <stdio.h>
int main()
{
    int s;
    double sum = 0;
    scanf("%d", &s);
    for (int i = 1; i <= s; i++)
    {
        sum += 1.0 / (2 * i - 1);
    }
    printf("sum = %.6f", sum);
    return 0;
}